package com.emmmya.ocs.modules.system.file.dao;

import com.emmmya.ocs.common.base.BaseDao;
import com.emmmya.ocs.modules.system.file.entity.File;

import java.util.List;

public interface FileDao extends BaseDao<File,Long> {
    //@Query(value ="SELECT h_file.id,h_file.create_by,h_file.create_time,h_file.del_flag,h_file.update_by,h_file.update_time,h_file.f_key,h_file.file_name,h_file.file_size,h_file.file_type,h_file.location,h_file.url,h_file.k_key FROM h_file WHERE h_file.k_key = ?1}",nativeQuery = true)
    File findByFkey(String fkey);
    //查找某个文件夹下的文件
    List<File> findByDirId(Long valueOf);
}
